import {
	defineStore
} from 'pinia'
import {
	ref
} from 'vue'

export const useUserStore = defineStore('user', () => {
	const token = ref('')
	const recirectURL = ref('/pages/index/index')
	const openType = ref('switchTab')
	
	return {
		token, recirectURL, openType
	}

}, {
	persist: ['token', 'recirectURL', 'openType']   // 表示指定数据被持久化
}, )